/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.openbravo.bean;

import cn.ekuma.data.dao.bean.I_AutoGeneratorStringKey;
import cn.ekuma.data.dao.bean.I_ModifiedLogBean;
import java.util.Date;

import com.openbravo.bean.ref.I_RefProduct;

/**
 *
 * @author Administrator
 */
public class ProductBom implements I_ModifiedLogBean<String>,I_AutoGeneratorStringKey,I_RefProduct{
    /**
	 * 
	 */
	private static final long serialVersionUID = -6459368146410506208L;
	String id;
    String parentProductId;
    String productID;//商品ID引用
    Product includeProduct;//包含的商品
    double units;//数量
    private Date lastModified;

    public ProductBom(String productID, Product includeProduct, double units) {
        this.productID = productID;
        this.includeProduct = includeProduct;
        this.units = units;
    }

    public ProductBom(String productID) {
        this.parentProductId = productID;
    }
    
    public ProductBom() {

    }

    public Product getIncludeProduct() {
        return includeProduct;
    }

    public void setIncludeProduct(Product includeProduct) {
        this.includeProduct = includeProduct;
    }

    public double getUnits() {
        return units;
    }

    public void setUnits(double units) {
        this.units = units;
    }

    public String getProductID() {
        return productID;
    }

    public void setProductID(String productID) {
        this.productID = productID;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public String getKey() {
        return id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setKey(String key) {
        this.id=key;
    }

	public String getParentProductId() {
		return parentProductId;
	}

	public void setParentProductId(String parentProductId) {
		this.parentProductId = parentProductId;
	}
}
